/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package controllers;

import play.*;
import play.jobs.*;
import play.test.*;
import models.*;
/**
 *
 * @author alex
 */
@OnApplicationStart

public class Bootstrap extends Job{
    public void  doJob () {
    //Check if database is empty

        if(User.count() ==0){
        Fixtures.loadModels("initial-data.yml");
        
        }
    }
    
}
